#include <iostream>
using namespace std;


class A{
public:
  A(){cout<<"A()"<<endl;}
  ~A(){cout<<"~A()"<<endl;}
};

int main()
{
  for(int i = 0; i < 3;i++) {
    cout<<"---"<<endl;
    A a;
    cout<<"end..."<<endl;
  }
  return 0;
}
